Repository navigation
feat(server): nudge a thread to delegate once it does the work itself - #149
Open
nullStack65 wants to merge 2 commits into
Open
nullStack65 wants to merge 2 commits into
nullStack65 wants to merge 2 commits into
Conversation
An opt-in per-thread setting counts a root run's own tool calls and, at each threshold, reminds the agent to hand the work off. It steers a running turn only when the provider can take a steer without interrupting the tool in progress; otherwise the note waits for the next run. Off by default, and a thread cannot change its own setting. Model: grok/grok-4.7 Task: feat Agent: Claude Code Co-Authored-By: Claude Code <noreply@anthropic.com>
A notification that arrives already asking to steer is refused, so the reminder never reached the turn. Send it queued, the way the other server notices do, and let the planner steer it when the provider can take it. Model: grok/grok-4.7 Task: fix Agent: Claude Code Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Owner
Author
|
Frozen 2026-11-22 CEO portfolio audit — cash-path priority; can reopen at the Dec 18 runway check. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A thread that does a long piece of work itself never hears that it should have handed it off. Nothing counted the tool calls, and nothing said so.
An opt-in per-thread setting,
delegationNudge, counts a root run's own tool calls and reminds the agent to delegate once it crosses a threshold. It is off unless set. The reminder steers the running turn when the provider can take a steer without interrupting the tool in progress, and otherwise waits and is handed to the next run as context. Orchestrator tools such asdelegate_taskandt3_thread_*are not counted, and a delegation resets the reminders. The setting records who changed it, and a thread cannot change its own.The counts are on each run in
t3_thread_read. The setting is changed witht3_thread_updateactionset_delegation_nudge, or with thethread.delegation-nudge.setcommand.Two shipped providers defer the note rather than steer: Claude's steering interrupts the running tool, and Codex delivers a steer by restarting the turn. The reactor steers only when steering is supported and neither of those is true.
Not enabled anywhere yet. After this deploys, turn it on for the CoS thread (
mcp:launch:4c07a2ef8bc6157f99fbae20642807c05a8a57c53eaec25dd4abfa16bc5b242eon environment2f360b2e-0386-498a-b9cd-62999f3525ba) from a different thread or a client, never from the CoS thread itself:Thresholds are optional and default to 5 and 10.
Model: grok/grok-4.7
Task: feat
🤖 Generated with Claude Code